package cn.zswltech.gruul.common.exception;

/**
 * @author Jim
 * @version 1.0.0
 * @descripition:
 * @date 2024/3/21 11:23
 */
public enum MenuErrorEnum implements BaseErrorEnum{
    MENU_GROUP_ADD_ERROR(60101,"菜单分组新增失败"),
    MENU_EXISTS_ERROR(60102,"已存在的菜单编号"),
    MENU_NOT_EXISTS_ERROR(60103,"菜单不存在"),
    MENU_GROUP_DEL_ERROR(60104,"菜单分组删除失败"),
    UNKNOWN_MENU_TYPE(60105,"未知的菜单类型"),
    ;

    private Integer errCode;
    private String errMsg;

    MenuErrorEnum(Integer errCode, String errMsg) {
        this.errCode = errCode;
        this.errMsg = errMsg;
    }

    @Override
    public Integer getErrCode() {
        return errCode;
    }

    @Override
    public String getErrMsg() {
        return errMsg;
    }
}
